package com.example.mvp.view.slidebar.util;

import com.example.mvp.bean.ClassMemberInfoEntity;

import java.util.Comparator;

/**
 * 拼音排序
 * @author chaohaipeng  on 2018/7/31.
 */

public class PinyinComparator implements Comparator<ClassMemberInfoEntity> {
    @Override
    public int compare(ClassMemberInfoEntity o1, ClassMemberInfoEntity o2) {
        //这里主要是用来对ListView里面的数据根据ABCDEFG...来排序
            return o1.getSortLetters().compareTo(o2.getSortLetters());
    }

}
